package com.sendi.sql;

import java.util.Date;

public class MinResult {

	/*
	 * type类型决定最大值的数据类型
	 * 目前支持INT,LONG,DOUBLE,FLOAT,DATE
	 */
	public String type="";
	public int minint=0;
	public long minlong=0l;
	public float minfloat=0.0f;
	public Date mindate=null;
	public double mindouble=0.0d;
	public int minindex=0;
	
	public Object getMinResult()
	{
		Object o=null;
		if(type.equalsIgnoreCase("INT"))
		{
			o=minint;
		}
		else if(type.equalsIgnoreCase("LONG"))
		{
		 o=minlong;
		}
		else if(type.equalsIgnoreCase("FLOAT"))
		{
			o=minfloat;
		}
		else if(type.equalsIgnoreCase("DOUBLE"))
		{
			 o=mindouble;
		}
		else if(type.equalsIgnoreCase("DATE"))
		{
			 o=mindate;
		}
		return o;
	}
	
	
}

